<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateRecordStaffPracticesTable extends Migration
{
    /**
     * Run the migrations.
     * 员工培训
     * @return void
     */
    public function up()
    {
        Schema::create('record_staff_practices', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('store_id')->index()->comment('门店id ');
            $table->integer('staff_practice_time')->index()->comment('新增时间戳');
            $table->integer('price')->comment('训练费用');
            $table->string('picture')->comment('合同发票图');
            $table->string('remark')->comment('备注');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('record_staff_practices');
    }
}
